package com.gwclh.personnel.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gwclh.personnel.bean.ResultVo;
import com.gwclh.personnel.domain.PageDomain;
import com.gwclh.personnel.entity.Internship;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gwclh.personnel.vo.internshipvo.InternshipEmpVo;

import java.util.Date;
import java.util.Map;

/**
 * <p>
 * 实习表，说明，若要查询实习员工，通过查询状态为0与2的emp_id，若查询已转正员工，则查询状态为1 服务类
 * </p>
 *
 * @author gzhhh
 * @since 2020-07-24
 */
public interface IInternshipService extends IService<Internship> {

    IPage<Map<String, Object>> getInternship();

    IPage<Map<String, Object>> getInternshipBySearch(Integer empId, String empName
            , String deptName, String staName, Integer internStatus
            , Date startDate, Date endDate);

    IPage<Map<String, Object>> selectFormal();

    IPage<Map<String, Object>> selectFormalBySearch(Integer empId, String empName
            , String deptName, Date startDate, Date endDate);

    Integer operate(Integer id, Integer operate, String comment, Date operDate, String remark, Integer operId);

    Map<String,Object> statisticsInternshipMonth();

    ResultVo listInternship(PageDomain pageDomain, InternshipEmpVo internshipEmpVo);

    ResultVo listTurnRightInternship(PageDomain pageDomain, InternshipEmpVo internshipEmpVo);
}
